package com.lyd.generic.demo2;

import lombok.*;

/**
 * @Author:lyd
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Person {
    //implements Comparable<Person>
    private String name;
    private Integer age;


//    @Override
//    public int compareTo(Person other) {
//        return Integer.compare(this.age, other.age);
//    }
}
